package com.naiterui.ehp.bs.im.network.protocl;

import java.io.Serializable;

import org.springframework.util.StringUtils;

public class DoctorsMedicalRecord implements IChecker, Serializable {
    private static final long serialVersionUID = -479529423369307584L;
    private Long doctorId;
    private String doctorName;
    private String doctorTitle;
    private Long patientId;
    private String patientName;
    private String gender;
    private String age;
    private String mainComplaint;// 主诉
    private String diagnosis;// 诊断
    private String doctorsSummary;// 医嘱
    private String medicalRecordId;
    private String patientsMedicalRecordId;
    private Long recommandId;
    private String auditDesc;// 审核描述
    private Integer checkingStatus;// 处方审核状态
    private Integer displayType;// 病历显示类型
    /**
     * 无效标识(0 正常 1 处方作废、2 病历作废、3 处方和病历作废)
     */
    private Integer invalid;
    /**
     * 推送病例时咨询类型 1.图文 2.视频
     */
    private Integer consultType;

    @Override
    public boolean selfValidate() {
        if (StringUtils.isEmpty(patientName) || StringUtils.isEmpty(gender) || StringUtils.isEmpty(age) || displayType == null) {
            return false;
        }
        return true;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getMainComplaint() {
        return mainComplaint;
    }

    public void setMainComplaint(String mainComplaint) {
        this.mainComplaint = mainComplaint;
    }

    public String getDiagnosis() {
        return diagnosis;
    }

    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis;
    }

    public String getDoctorsSummary() {
        return doctorsSummary;
    }

    public void setDoctorsSummary(String doctorsSummary) {
        this.doctorsSummary = doctorsSummary;
    }

    public String getMedicalRecordId() {
        return medicalRecordId;
    }

    public void setMedicalRecordId(String medicalRecordId) {
        this.medicalRecordId = medicalRecordId;
    }

    public Long getRecommandId() {
        return recommandId;
    }

    public void setRecommandId(Long recommandId) {
        this.recommandId = recommandId;
    }

    public String getAuditDesc() {
        return auditDesc;
    }

    public void setAuditDesc(String auditDesc) {
        this.auditDesc = auditDesc;
    }

    public Integer getCheckingStatus() {
        return checkingStatus;
    }

    public void setCheckingStatus(Integer checkingStatus) {
        this.checkingStatus = checkingStatus;
    }

    @Override
    public String toString() {
        return "DoctorsMedicalRecord [patientName=" + patientName + ", gender=" + gender + ", age=" + age + ", mainComplaint=" + mainComplaint
                + ", diagnosis=" + diagnosis + ", doctorsSummary=" + doctorsSummary + ", medicalRecordId=" + medicalRecordId + ", recommandId="
                + recommandId + ", auditDesc=" + auditDesc + ", checkingStatus=" + checkingStatus + "]";
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getDoctorTitle() {
        return doctorTitle;
    }

    public void setDoctorTitle(String doctorTitle) {
        this.doctorTitle = doctorTitle;
    }

    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public String getPatientsMedicalRecordId() {
        return patientsMedicalRecordId;
    }

    public void setPatientsMedicalRecordId(String patientsMedicalRecordId) {
        this.patientsMedicalRecordId = patientsMedicalRecordId;
    }

    public Integer getDisplayType() {
        return displayType;
    }

    public void setDisplayType(Integer displayType) {
        this.displayType = displayType;
    }

    public Integer getInvalid() {
        return invalid;
    }

    public void setInvalid(Integer invalid) {
        this.invalid = invalid;
    }

    public Integer getConsultType() {
        return consultType;
    }

    public void setConsultType(Integer consultType) {
        this.consultType = consultType;
    }
}
